A custom slot, implementable by external code. More...
Public Member Functions | |
| ShaderInstanceCustomSlot () noexcept | |
| virtual | ~ShaderInstanceCustomSlot () |
| nkMemory::StringView | getTypeName () const |
| nkMemory::StringView | getSemanticName () const |
| void | setSemanticName (nkMemory::StringView value) |
| virtual unsigned int | getDataByteSize ()=0 |
| virtual void | fillDataBuffer (Entity *caller, void *buffer)=0 |
A custom slot, implementable by external code.
|
noexcept |
Constructor.
|
virtual |
Destructor.
| nkMemory::StringView nkGraphics::ShaderInstanceCustomSlot::getTypeName | ( | ) | const |
| nkMemory::StringView nkGraphics::ShaderInstanceCustomSlot::getSemanticName | ( | ) | const |
| void nkGraphics::ShaderInstanceCustomSlot::setSemanticName | ( | nkMemory::StringView | value | ) |
Sets the semantic name to use for the data. This has to correspond to the semantic name declared in the shader.
| value | The name to set |
|
pure virtual |
Implemented in nkGraphics::ShaderInstanceCustomDummySlot.
|
pure virtual |
Fills the buffer for one entry.
| caller | The entity to fill the data for. |
| buffer | The spot in the memory buffer to fill. |
Implemented in nkGraphics::ShaderInstanceCustomDummySlot.